/*
@hehung
email: 1398660197@qq.com
wechat: hehung95
reproduced and please indicate the source @hehung
*/

#ifndef APP_WIFI_H_
#define APP_WIFI_H_

#include "app_common.h"


typedef enum
{
    WIFI_OPT_INIT = 0,
    WIFI_OPT_SETTING,
    WIFI_OPT_SNTP_SETTING,
    WIFI_OPT_MQTT_CONFIG,
    WIFI_OPT_WORKING,
    WIFI_OPT_CONNECT_STATUS,
    WIFI_OPT_GET_TIME
} e_WifiOptType;

typedef enum
{
	WIFI_DISCONNECT = 0,
	WIFI_CONNECTED
} e_WifiConnStaType;

typedef enum
{
	WIFI_IOT_DISCONNECT = 0,
	WIFI_IOT_CONNECTED
} e_WifiIotConnStaType;

typedef struct
{
	float     temp;
	float     humi;
	uint32_t  mq5;
	uint32_t  mq5_thd;
	uint8_t   heart_beat;
	float     spo2;
	uint8_t   led;
	uint8_t   warning_switch;
} s_postParamType;


extern void Wifi_Init(void);
extern void Wifi_RunningEntry(void);
extern e_WifiConnStaType Wifi_GetApConnStatus(void);
extern e_WifiIotConnStaType Wifi_GetIotConnStatus(void);


#endif /* APP_WIFI_H_ */
